<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%
String username = (String) session.getAttribute("username");
if (username == null || username.equals("")) {
	out.print("<script>alert('您还没有登录！');location.href='login.html';</script>");
	out.flush(); 
	return;
}else{
	String admin = (String) session.getAttribute("identify");
	if (admin == null || !admin.equals("admin")) {
		out.print("<script>alert('您不是管理员！');location.href='main.html';</script>");
		out.flush();
		return;
	} 
}
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<frameset cols="150,*" id="parentFrame" frameborder="no" border="0" framespacing="0">
	<frame id="leftmenu" name="leftmenu" noresize name="leftmenu" src="leftmenu.html">
	<frame id="rightframe" name="rightframe" src="chooseStatistics.html">
</frameset>

</html>

